package org.darkforest.model;

import org.darkforest.common.util.Page;

import java.util.List;

public class PMansong extends Page<PMansong> {
    private Integer mansongId;

    private String mansongName;

    private Integer quotaId;

    private Integer startTime;

    private Integer endTime;

    private Integer memberId;

    private Integer storeId;

    private String memberName;

    private String storeName;

    private Byte state;

    private String remark;

    private Integer nowTime;

    private String startTimeDes;

    private String endTimeDes;

    private Integer gcId;

    private String gcName;


    public Integer getNowTime() {
        return nowTime;
    }

    public void setNowTime(Integer nowTime) {
        this.nowTime = nowTime;
    }

    private List<PMansongRule> pMansongRuleList; //满送活动规则

    private String[] manSongRule;

    public String[] getManSongRule() {
        return manSongRule;
    }

    public void setManSongRule(String[] manSongRule) {
        this.manSongRule = manSongRule;
    }

    public PMansong(){}

    public PMansong(Integer storeId,Integer nowTime,byte state){
        this.setStoreId(storeId);
        this.setNowTime(nowTime);
        this.setState(state);
    }


    public String getStartTimeDes() {
        return startTimeDes;
    }

    public void setStartTimeDes(String startTimeDes) {
        this.startTimeDes = startTimeDes;
    }

    public String getEndTimeDes() {
        return endTimeDes;
    }

    public void setEndTimeDes(String endTimeDes) {
        this.endTimeDes = endTimeDes;
    }

    public List<PMansongRule> getpMansongRuleList() {
        return pMansongRuleList;
    }

    public void setpMansongRuleList(List<PMansongRule> pMansongRuleList) {
        this.pMansongRuleList = pMansongRuleList;
    }

    public Integer getMansongId() {
        return mansongId;
    }

    public void setMansongId(Integer mansongId) {
        this.mansongId = mansongId;
    }

    public String getMansongName() {
        return mansongName;
    }

    public void setMansongName(String mansongName) {
        this.mansongName = mansongName == null ? null : mansongName.trim();
    }

    public Integer getQuotaId() {
        return quotaId;
    }

    public void setQuotaId(Integer quotaId) {
        this.quotaId = quotaId;
    }

    public Integer getStartTime() {
        return startTime;
    }

    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }

    public Integer getEndTime() {
        return endTime;
    }

    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName == null ? null : memberName.trim();
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName == null ? null : storeName.trim();
    }

    public Byte getState() {
        return state;
    }

    public void setState(Byte state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
    //状态，0待审核, 1-正常, 2 已结束 3审核拒绝
    public String getStateDes(){
        switch (this.state){
            case 0 : return "待审核";
            case 1 : return "正常";
            case 2 : return "已结束";
            case 3 : return "审核拒绝";
            default:  return "未知状态";

        }
    }

    public Integer getGcId() {
        return gcId;
    }

    public void setGcId(Integer gcId) {
        this.gcId = gcId;
    }

    public String getGcName() {
        return gcName;
    }

    public void setGcName(String gcName) {
        this.gcName = gcName;
    }
}